package com.xj.common.bussiness.registerLicense.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.xj.common.bussiness.registerLicense.entity.TbRegisterLicense;
import com.xj.common.bussiness.registerLicense.entity.registerLicenseMould;
import com.xj.common.bussiness.transferLicense.entity.TbTransferLicense;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-12
 */
public interface TbRegisterLicenseMapper extends BaseMapper<TbRegisterLicense> {

    /**
     * 根据上户表中的信息查询过户表
     * @param registerLicense
     * @return
     */
    List<TbTransferLicense> searchTransferForRegister (TbRegisterLicense registerLicense);

    /**
     * 查询带照片的上户表
     * @param id
     * @return
     */
    TbTransferLicense searchRegisterLicenseAndImg(@Param("id") Integer id);

    /**
     * 根据此申请表的状态和用户的身份证查询此申请表的所有信息
     * @author ZH
     * @param registerLicense
     * @return
     */
    List<registerLicenseMould> searchRegisterLicenseList(TbRegisterLicense registerLicense);

    List<TbRegisterLicense> selectRegisterLicense(TbRegisterLicense registerLicense);

    void updateFactoryNum(TbRegisterLicense registerLicense);
}